Repository navigation
id(worlds): ship playable Burrow guest for burrow/detour-to-exit - #14453
Conversation
Roc guest in examples/roc-burrow on the Plaza ABI v1 platform: dig clears adjacent soil exactly once, the rock is impassable, the exit opens only after three clears. records and snapshot publish the same domain document; the view is a semantic text grid. Host load/play fixture tests/burrow_host_play.rs replays the five-step literal vector from app-vectors.json through id::sandbox, with snapshot-restore and next-operation comparison. Registration in scripts/rebuild-roc-examples.sh and tests/toolchain_pin.rs; book coverage in first-apps, guests-and-shells and add-a-guest (11 Roc apps). The checked-in burrow.wasm follows in a separate commit once the remote build produces it.
…13603) Built remotely on GitHub-hosted runners (fleet-command run 45424814764) with Roc nightly-2026-10-04-130536d, the version pinned in pkgs/id/nix/roc-version; wasm-tools validate confirms the import-free module. 179372 bytes.
Move the host load/play fixture into crates/id-worlds/src/sandbox.rs, the roc-mind-map precedent for Roc guests: the facade-level integration test cannot build while #14315 keeps id-cli unbuildable on main, while the sandbox suite needs only id-worlds. Two tests: the five-step literal-vector replay with the semantic text grid, and snapshot-restore with the scope distinctions (host events, view vs records, refusals).
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Verification record — task 22715 resume (worker felix), 2026-11-24. Blockers cleared: #14315 is closed and PR #14325 is merged, so the host replay suite is unblocked. Branch Remote verification (fleet-command workflow on developing-today/fleet), both on head
Note on the first dispatch pair (runs 45474946543 / 45475018568): both failed on invocation context only — cargo ran from the repo root, whose workspace does not contain id-worlds ("cannot specify features for packages outside of workspace" / "no test target named This PR is ready to merge. |
|
Follow-up to the verification record above: the branch head has since advanced to |
Refs #13603. Do not merge yet: the guest and all source work are complete and the guest build is verified remotely, but the host replay suite cannot compile until #14315 (the 2026-11-24 grouped cargo bump) lands — see Verification.
What is new
pkgs/id/examples/roc-burrow/:main.rocon the pinned Roc platform (Plaza ABI v1 entry points, no new SDK),build.sh(pinned roc-toolchain guard, wasm-opt plus strip plus validate),README.md, and the checked-in import-freeburrow.wasm.blocked-rock); the exit accepts entry only once three clears are banked (blocked-exitbefore,escapedafter). Host (participant 0) events are ignored; theeventtag is host journal deduplication metadata and the guest does not read it.recordsandsnapshotpublish the same domain document (digger,soil,cleared_count,phase,outcome); the view is a semantic text grid (A digger, s soil, # rock, X exit, . open floor) with remaining soil and quota as text.checked_in_burrow_replays_detour_to_exitandchecked_in_burrow_snapshot_restore_and_scope_distinctions(crates/id-worlds/src/sandbox.rs, the roc-mind-map placement): the five-step literal vector fromapp-vectors.jsonreplayed through the regular host, snapshot restored into a fresh instance with the next operations compared, and the scope distinctions asserted (host events, view vs records keys, unexercised refusals). Expected states are literal copies of the vector projections, never derived from the guest.scripts/rebuild-roc-examples.shand thetests/toolchain_pin.rsexample list (9 to 10). Book coverage:first-apps.md(10 to 11 apps),guests-and-shells.md,development/add-a-guest.md.Verification
nightly-2026-10-04-130536d(frompkgs/id/nix/roc-version) compiled the guest;wasm-tools validateconfirms the import-free module;burrow.wasmis 179,372 bytes, byte-size identical across both builds.id-storeitself (duplicate iroh-blobs versions). A stacked run on this branch plus the id: adapt id-store and id-worlds to iroh-blobs 0.105 / redb 5 (checkpoint) #14325 checkpoint branch, run 45427875429, getsid-storecompiling and isolates the remainder to 25 errors in id-worlds' own test modules (world_records.rs,world/spill_pool.rs) from the same bump — the pkgs/id: id-store does not compile on main since the 2026-11-24 grouped cargo bump (iroh-blobs 0.105 / redb 5.0) #14315 fix lane's territory (task 23352). None of the errors are in this PR's code.cargo test -p id-worlds --features sandbox --lib checked_in(covers both new burrow tests by name plus the sibling replay tests) andcargo test --test toolchain_pin; then this PR can close id(worlds): ship playable Burrow guest for burrow/detour-to-exit #13603.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-24T15:50:09Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": "/home/hatch", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/hatch", "repo": "developing-today/code", "branch": "main", "sha": "c11f41086f57d626be7eb582763b721f8f557408" }, "auth_subject": "felix", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.